package StudyCode.summary.myfile;

import java.nio.file.Path;
import java.nio.file.Paths;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class GetPathUsingSubpath {
	public static void main(String[] args) {
		Path path = Paths.get("E:", "Copy/1/2", "test.txt");
		System.out.println("Path: " + path);
		System.out.println("截取 (0,3): " + path.subpath(0, 3));
	}
}
